package com.songcha.module_main.ui.fragment.mine

import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_network.bean.BaseBean
import com.songcha.module_main.api.MainApiManager
import io.reactivex.Observable
import okhttp3.RequestBody.Companion.toRequestBody
import org.json.JSONObject

class MineRepository:BaseRepository() {
    fun commitFeedback(content:String): Observable<BaseBean> {
        val body = JSONObject().apply {
            put("feedback",content)
        }
        return MainApiManager.api.commitFeedback(body.toString().toRequestBody())
    }
}